package com.bootdo.lvyou_specialty.domain;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import com.bootdo.common.annotation.NotColumn;
import com.bootdo.common.fansheutils.FansheUtils;
import com.bootdo.common.fansheutils.JibenLei;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.haojiangbo.annotation.HapiFeild;


/**
 * 
 * 
 * @author haojiangbo
 * @email 2100272728@qq.com
 * @date 2019-10-21 11:23:18
 */
 @JsonInclude(JsonInclude.Include.NON_NULL)
public class LvyouSpecialtyLunbo extends JibenLei {
	@NotColumn
	private static final long serialVersionUID = 1L;
	
	
	//id
	 @NotColumn 	@HapiFeild("id")
	private Long id;
	
	//创建时间
		@HapiFeild("创建时间")
	private Date createTime;
	
	//商品的id
		@HapiFeild("商品的id")
	private Long goodsId;
	
	//
		@HapiFeild("")
	private String title;
	
	//1代表跳转的是商品的详情  2代表的是跳转商品推文 
		@HapiFeild("1代表跳转的是商品的详情  2代表的是跳转商品推文 ")
	private Integer type;
	
	//跳转的路径
		@HapiFeild("跳转的路径")
	private String url;
	
	//推文的id
		@HapiFeild("推文的id")
	private Long articleId;

	//所属类别的id
	@HapiFeild("所属类别的id")
	private Long typeId;

	@HapiFeild("图片的路径")
	private String image;

    public LvyouSpecialtyLunbo(){
    
    	this.createTime = new Date();
    }


	/**
	 * 设置：id
	 */
	public void setId(Long id) {
		this.id = id;
	}
	/**
	 * 获取：id
	 */
	public Long getId() {
		return id;
	}
	/**
	 * 设置：创建时间
	 */
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	/**
	 * 获取：创建时间
	 */
	public Date getCreateTime() {
		return createTime;
	}
	/**
	 * 设置：商品的id
	 */
	public void setGoodsId(Long goodsId) {
		this.goodsId = goodsId;
	}
	/**
	 * 获取：商品的id
	 */
	public Long getGoodsId() {
		return goodsId;
	}
	/**
	 * 设置：
	 */
	public void setTitle(String title) {
		this.title = title;
	}
	/**
	 * 获取：
	 */
	public String getTitle() {
		return title;
	}
	/**
	 * 设置：1代表跳转的是商品的详情  2代表的是跳转商品推文 
	 */
	public void setType(Integer type) {
		this.type = type;
	}
	/**
	 * 获取：1代表跳转的是商品的详情  2代表的是跳转商品推文 
	 */
	public Integer getType() {
		return type;
	}
	/**
	 * 设置：跳转的路径
	 */
	public void setUrl(String url) {
		this.url = url;
	}
	/**
	 * 获取：跳转的路径
	 */
	public String getUrl() {
		return url;
	}
	/**
	 * 设置：推文的id
	 */
	public void setArticleId(Long articleId) {
		this.articleId = articleId;
	}
	/**
	 * 获取：推文的id
	 */
	public Long getArticleId() {
		return articleId;
	}

	public String getImage() {
		return image;
	}

	public void setImage(String image) {
		this.image = image;
	}

	public Long getTypeId() {
		return typeId;
	}

	public void setTypeId(Long typeId) {
		this.typeId = typeId;
	}

	@Override
	@JsonIgnore
	public List<HashMap<String, Object>> getFields() {
		// TODO Auto-generated method stub
		return FansheUtils.getFieldList(this);
	}


}
